package com.david.SendFileToGateway.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FeignInfoLogger extends feign.Logger {

    private Logger logger;

    public FeignInfoLogger(){
        this(FeignInfoLogger.class);
    }

    public FeignInfoLogger(Class<?> clazz){
        this(LoggerFactory.getLogger(clazz));
    }

    public FeignInfoLogger(Logger logger){
        this.logger=logger;
    }

    @Override
    protected void log(String configKey, String format, Object... args) {
        logger.info(String.format(methodTag(configKey)+format,args));
    }
}
